package org.ivwsqii.composite;

/**
 * 	树叶构件角色类
 * @author wyl
 *	2019年3月30日
 */
public class Leaf extends Component{

	private String name;

	public Leaf(String name) {
		this.name = name;
	}

	@Override
	public void printStruts(String preStr) {
		System.out.print(name+"/"+preStr);
	}


}
